Get Link Position

April 15, 2008 · 18 views · 0 comments

Get Link Position
taken by : Dedric Mauriac on Thistle Island (107, 86, 190)
blogHUD

About

So I needed to synchronize my script to be aware of all positions that avatars are sitting at if the script is reset. This could be a nightmare. llGetPos/llGetRootPos only gets the position of the root prim. llGetLocalPos has to be run inside the link itself. llGetPrimitiveParams works - but again it has to run in the prim itself (there is no such thing as llGetLinkPrimitiveParams or llGetLinkPos). There is one thing left. Using llGetLinkKey, I can query information from llGetObjectDetails(avatarId, [OBJECT_POS]). Now the trick is to translate the regional cordinates into local cordinates with llGetPos(). From Dedric Mauriac via blogHUD.com